package com.fasteat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fasteat.vo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<User> {
    //查询用户基本信息，用于聊天界面
    @Select("select id, username, nickname, sex, avatar from t_authority_user where id = #{id} ")
    public User getService(@Param("id") String id);
}
